package com.my12306.train.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my12306.common.model.vo.PageVo;
import com.my12306.train.model.entity.RouteScheduleRelationEntity;
import com.my12306.train.model.vo.RouteScheduleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 批量删除线路与车次之间的关系
 * @author wj¦
 * @email
 * @date 2020-07-24 20:58:07
 */
@Mapper
public interface RouteScheduleRelationDao extends BaseMapper<RouteScheduleRelationEntity> {

    /**
     * 批量删除线路与车次之间的关系
     * @param routeIds
     * @param logicDelete
     */
    void deleteRouteScheduleBatchByRouteIds(@Param("list") List<Long> routeIds, @Param("logicDelete") int logicDelete);
    /**
     * 批量删除线路与车次之间的关系
     * @param routeIds
     * @param logicDelete
     */
    void deleteRouteScheduleBatchByIds(@Param("list") List<Long> routeIds, @Param("logicDelete") Integer logicDelete);

    /**
     * 分页查询
     * @param pageVo
     * @param logicDelete
     * @return
     */
    List<RouteScheduleVo> queryRouteScheduleByPage(@Param("pageVo") PageVo pageVo, @Param("logicDelete") Integer logicDelete);

    /**
     * 分页查询总数据量
     * @param pageVo
     * @param logicDelete
     * @return
     */
    Integer queryRouteScheduleCountByPage(@Param("pageVo") PageVo pageVo, @Param("logicDelete") Integer logicDelete);
}
